<tagLib name="strends" />
<include file="Public:header" />
<div class="handle-btns">
	<strends:linkBtn text="{%RETURN_LIST}" href="{:U(MODULE_NAME.'/index')}" />
</div>
<form method='post' id="form" name="form" action="{:U(MODULE_NAME.'/insert')}" enctype="multipart/form-data">
<table cellpadding="4" cellspacing="0" border="0" class="table-form">
	<tr>
		<th width="150">{%NAME}</th>
		<td><input type="text" class="textinput requireinput" name="name" value="{$vo['name']}" /></td>
	</tr>
	<tr>
		<th width="150">国家</th>
		<td><input type="text" class="textinput requireinput" name="country" value="{$vo['country']}" /></td>
	</tr>
	<tr>
		<th width="150">生日</th>
		<td><input type="text" class="textinput requireinput" name="birthday" value="{$vo['birthday']}" /></td>
	</tr>
	<tr>
		<th>图片</th>
		<td>
			<input type="file" class="fileinput" name="imgs" size="30" />
			<if condition="$vo['imgs'] neq ''">
				<a href="__ROOT__/{$vo['imgs']}" target="_blank" >{%VIEW}</a>
			</if>
		</td>
	</tr>
	 <tr>
        <th>底层页头像</th>
        <td>
            <input type="file" class="fileinput" name="imgs" size="30" /> * 文件名需为 <b>model.jpg</b> *
            <if condition="$vo['imgs'] neq ''">
                <a href="__ROOT__/{$vo['imgs']}" target="_blank" >{%VIEW}</a>
            </if>
        </td>
    </tr>
    <tr>
        <th>最性感头像</th>
        <td>
            <input type="file" class="fileinput" name="seximg" size="30" /> * 文件名需为 <b>sex.jpg</b> *
            <if condition="$vo['seximg'] neq ''">
                <a href="__ROOT__/{$vo['seximg']}" target="_blank" >{%VIEW}</a>
            </if>
        </td>
    </tr>
	<tr>
		<th width="150">热度值</th>
		<td><input type="text" class="textinput requireinput" name="hot" value="{$vo['hot']}" /></td>
	</tr>
    <tr>
        <th>最吸金头像</th>
        <td>
            <input type="file" class="fileinput" name="moneyimg" size="30" /> * 文件名需为 <b>money.jpg</b> *
            <if condition="$vo['moneyimg'] neq ''">
                <a href="__ROOT__/{$vo['moneyimg']}" target="_blank" >{%VIEW}</a>
            </if>
        </td>
    </tr>
    <tr>
        <th>最顶级头像</th>
        <td>
            <input type="file" class="fileinput" name="topimg" size="30" /> * 文件名需为 <b>top.jpg</b> *
            <if condition="$vo['topimg'] neq ''">
                <a href="__ROOT__/{$vo['topimg']}" target="_blank" >{%VIEW}</a>
            </if>
        </td>
    </tr>
	<tr>
		<th width="150">标签</th>
		<td>
			<input type="text" class="textinput requireinput tag" name="tag" value="{$vo['tag']}" />
			<span  class='allradiuimg'>最性感</span>
			<span  class='allradiuimg'>最吸金</span>
			<span  class='allradiuimg'>最顶级</span>
		</td>
	</tr>
	<tr>
		<th width="150">最性感排名</th>
		<td><input type="text" class="textinput requireinput" name="sex_sort" value="{$vo['sex_sort']}" /></td>
	</tr>
	<tr>
		<th width="150">最吸金排名</th>
		<td><input type="text" class="textinput requireinput" name="money_sort" value="{$vo['money_sort']}" /></td>
	</tr>
	<tr>
		<th width="150">最性感综合评价</th>
		<td><textarea type="text" class="textinput requireinput" style="height:70px;" rows="5" cols="50" name="assess1" value="" >{$vo['assess1']}</textarea></td>
	</tr>
	<tr>
		<th width="150">最吸金综合评价</th>
		<td><textarea type="text" class="textinput requireinput" style="height:70px;" rows="5" cols="50" name="assess2" value="" >{$vo['assess2']}</textarea></td>
	</tr>
	<tr>
		<th width="150">最顶级综合评价</th>
		<td><textarea type="text" class="textinput requireinput" style="height:70px;" rows="5" cols="50" name="assess3" value="" >{$vo['assess3']}</textarea></td>
	</tr>
	<script>
		var manTag = {
        inArray : function(arr,str){
            var flag = false;
            for(var i=0;i<arr.length;i++){
                if($.trim(arr[i]) == $.trim(str)){
                    flag = true;
                }
            }
            return flag;
        },
        arrKey : function(arr,val){
            for(var i=0;i<arr.length;i++){
                if(arr[i] == val){
                    return i;
                }
            }
            return;
        },
        addTag : function(co,io){
            var arr = new Array();
            arr = $.trim(io.val()).split(' ');
            var tagValue = co.text();
            if(this.inArray(arr,tagValue)){
                arr.splice(this.arrKey(arr,$.trim(tagValue)),1);
            }else{
                arr.push(tagValue);
            }
            io.val(arr.join(" "));
        }
    };
	var tagclass=$('.allradiuimg');
	var dianji=$('.tag');
	tagclass.click(function (){
		manTag.addTag($(this),dianji);
	});
	
	</script>
	<tr>
		<th width="150">经济公司</th>
		<td><input type="text" class="textinput requireinput" name="firm_name" value="{$rofirms['firm_name']}" /></td>
	</tr>
	<tr>
		<th width="150">排名</th>
		<td><input type="text" class="textinput requireinput" name="rank" value="{$ranks['rank']}" /></td>
	</tr>
	<tr>
		<th width="150">内容</th>
		<td><textarea type="text" rows="5" cols="50" class="textinput requireinput" style="height:70px;" name="contents" value="" >{$vo['contents']}</textarea></td>
	</tr>
	<tr class="act">
		<th>&nbsp;</th>
		<td>
			<input type="hidden" name="id" value="{$vo['id']}" />
			<input type="submit" class="submit_btn" value="{%SUBMIT}" />
			<input type="reset" class="reset_btn" value="{%RESET}" />
		</td>
	</tr>
</table>
</form>
<include file="Public:footer" />